package com.mining.common;

@TestAno(value="valuetext", singer = "singertext", album="albumtext")
public class RunTest {
	

	public static void main(String args[]) throws ClassNotFoundException{
		String className = "com.mining.common.RunTest";
		Class clz = Class.forName(className);
 
		// Annotation 가지고 오기
		TestAno bgmAnno = (TestAno)clz.getAnnotation(TestAno.class);
		System.out.println(bgmAnno);
		System.out.println(bgmAnno.value());
		System.out.println(bgmAnno.singer());
		System.out.println(bgmAnno.album());
		//System.out.println(bgmAnno.album().type());
 
		// Annotation 유무
		Boolean exist = clz.isAnnotationPresent(TestAno.class);
		System.out.println(exist);
	}

}
